﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.FriendRewardsUI {
    import flash.display.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.*;
    import Classes.util.*;

    public class FriendRewardsDialog extends GenericDialog {

        protected var m_zooData:Array;
        protected var m_localeKey:String;

        public function FriendRewardsDialog(_arg1:MechanicMapResource, _arg2:String=null, _arg3:Object=null, _arg4:Function=null){
            this.loadObject(_arg3);
            this.m_localeKey = _arg2;
            super("durp?", _arg2, 0, _arg4, _arg2, "", false, 0, "", null, "");
        }
        protected function loadObject(_arg1:Object):void{
            var _local2:String;
            var _local3:String;
            this.m_zooData = new Array();
            for (_local2 in _arg1) {
                _local3 = _local2;
                if (_local3.indexOf("i") >= 0){
                    _local3 = _local3.substr(1);
                };
                this.m_zooData.push({
                    uid:_local3,
                    itemName:_arg1[_local2]
                });
            };
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            var _local2:FriendRewardsDialogView = new FriendRewardsDialogView(this.m_zooData, _arg1, this.m_localeKey, m_message, m_dialogTitle);
            return (_local2);
        }
        override protected function getAssetDependencies():Array{
            return ([DelayedAssetLoader.GENERIC_DIALOG_ASSETS, DelayedAssetLoader.MARKET_ASSETS]);
        }
        override protected function createAssetDict():Dictionary{
            var _local1:Dictionary = new Dictionary(true);
            var _local2:Object = m_assetDependencies[DelayedAssetLoader.GENERIC_DIALOG_ASSETS];
            _local1["dialog_bg"] = (new _local2.dialog_bg() as DisplayObject);
            _local1["dialog_div"] = _local2.dialog_rename_divider;
            _local1["vertical_scrollBar_border"] = _local2.vertical_scrollBar_border;
            _local1["btn_up_normal"] = _local2.gridlist_nav_up_normal;
            _local1["btn_up_over"] = _local2.gridlist_nav_up_over;
            _local1["btn_up_down"] = _local2.gridlist_nav_up_down;
            _local1["btn_down_normal"] = _local2.gridlist_nav_down_normal;
            _local1["btn_down_over"] = _local2.gridlist_nav_down_over;
            _local1["btn_down_down"] = _local2.gridlist_nav_down_down;
            _local1["cell_bg"] = _local2.cell_bg;
            _local1["cell_bg_alt"] = _local2.cell_bg_alt;
            _local1["pic_cashBtn"] = EmbeddedArt.icon_cash_big;
            _local1["pic_checkGreen"] = _local2.checkmark_green;
            _local1["pic_dot"] = _local2.gridList_page_dot;
            var _local3:Object = m_assetDependencies[DelayedAssetLoader.MARKET_ASSETS];
            _local1["card_available_selected"] = _local3.slices_card_active;
            return (_local1);
        }

    }
}//package Display.FriendRewardsUI 
